package jdbc;

import jdbc.util.InputField;

public class User {
	@InputField(title = "用户名",notNull = true)
	private String username;
	@InputField(title = "密码",notNull = true)
	private String password;
	@InputField(title = "昵称",notNull = true)
	private String nickname;
	@InputField(title = "年龄",notNull = true)
	private int age;
	
	public String getUsername() {
		return username;
	}
	
	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getNickname() {
		return nickname;
	}
	
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	public int getAge() {
		return age;
	}
	
	public void setAge(int age) {
		this.age = age;
	}
	
	@Override
	public String toString() {
		return "User{" +
				"username='" + username + '\'' +
				", password='" + password + '\'' +
				", nickname='" + nickname + '\'' +
				", age=" + age +
				'}';
	}
}
